package dgut.bbm.dao;

import dgut.bbm.entity.GoodsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 
 * 
 * @author seventeen
 * @email 1973182107@qq.com
 * @date 2023-05-06 16:56:08
 */
@Mapper
public interface GoodsDao extends BaseMapper<GoodsEntity> {

    Long lockStock(@Param("goodsId") Long goodsId, @Param("quantity")Integer quantity, @Param("price")	BigDecimal price);
}
